<template>
	<view class="">
		<view class="">
			<text class="history" style="">文件名</text>
			<text class="history" style="">打印时间</text>
			<text class="history" style="">打印份数</text>
		</view>
		<view style="margin-top:70rpx">
			<view class="flex list-item" v-for="item in printHistory ">
				<text class="history" style="">{{item.fileName}}</text>
				<text class="history" style="">{{item.printTime}}</text>
				<text class="history" style="">{{item.printCount}}</text>
			</view>
		</view>
	</view>
	
	
</template>

<script>
	export default{
		
		data(){
			return{
				printHistory:[]   
			}
		},
		onShow: function() {
			var that = this
			that.$getPersonHistoryPrinting().then((res)=>{
				for(let i = 0 ;i < res.data.data.length; i++){	
					that.$set(that.printHistory,i, res.data.data[i])   
				}
				
			})
		
		},
		
		onLoad() {
			
		},
		
		methods:{
			
			
		}
	}
</script>

<style>
	
	.list-item{
		justify-content: space-between;
		margin-top:30rpx;
		margin-bottom: 30rpx;
	}
	.history{
		font-size: 30rpx;
		margin-left: 40rpx;
	}
	
	
</style>
